﻿package mortal.game.view.lookPlayerInfo
{
    import Message.Public.*;
    import extend.language.*;
    import mortal.game.resource.*;
    import mortal.game.view.mount.newMountModuel.*;
    import mortal.game.view.palyer.data.*;
    import mortal.game.view.palyer.util.*;
    import mortal.game.view.palyer.view.*;
    import mortal.game.view.petNew.view.*;

    public class LookPlayerUtil extends Object
    {

        public function LookPlayerUtil()
        {
            return;
        }// end function

        public static function getLeftBgUrlByLookType(param1:int) : String
        {
            var _loc_2:String = null;
            switch(param1)
            {
                case ELookUpType._ELookUpTypeMount:
                {
                    _loc_2 = "mountInfoRightBg";
                    break;
                }
                case ELookUpType._ELookUpTypePet:
                {
                    _loc_2 = "PetInfoRightBg2";
                    break;
                }
                default:
                {
                    _loc_2 = FashionPanelBase.getBgName(getConfigTypeByLookType(param1));
                    break;
                    break;
                }
            }
            return _loc_2 + ".swf";
        }// end function

        public static function getRightBgUrlByLookType(param1:int) : String
        {
            var _loc_2:String = null;
            switch(param1)
            {
                case ELookUpType._ELookUpTypeMount:
                {
                    _loc_2 = ImagesConst.AdvanceInfoBg;
                    break;
                }
                case ELookUpType._ELookUpTypePet:
                {
                    _loc_2 = ImagesConst.AdvanceInfoBg;
                    break;
                }
                default:
                {
                    _loc_2 = ImagesConst.AdvanceInfoBg;
                    break;
                    break;
                }
            }
            return _loc_2;
        }// end function

        public static function getVipConfigTypeByLookType(param1:int) : int
        {
            switch(param1)
            {
                case ELookUpType._ELookUpTypeMount:
                {
                    param1 = EVipRecordType._EVipRecordTypeMountEffect;
                    break;
                }
                case ELookUpType._ELookUpTypePet:
                {
                    param1 = EVipRecordType._EVipRecordTypePetEffect;
                    break;
                }
                case ELookUpType._ELookUpTypeFashion:
                {
                    param1 = EVipRecordType._EVipRecordTypeClothesEffect;
                    break;
                }
                case ELookUpType._ELookUpTypeWings:
                {
                    param1 = EVipRecordType._EVipRecordTypeWingEffect;
                    break;
                }
                case ELookUpType._ELookUpTypeWeapon:
                {
                    param1 = EVipRecordType._EVipRecordTypeWeaponEffect;
                    break;
                }
                default:
                {
                    break;
                }
            }
            return param1;
        }// end function

        public static function getConfigTypeByLookType(param1:int) : int
        {
            switch(param1)
            {
                case ELookUpType._ELookUpTypeMount:
                {
                    param1 = EAdvanceComponentType._EAdvanceComponentTypeMount;
                    break;
                }
                case ELookUpType._ELookUpTypePet:
                {
                    param1 = EAdvanceComponentType._EAdvanceComponentTypePet;
                    break;
                }
                case ELookUpType._ELookUpTypeFashion:
                {
                    param1 = EAdvanceComponentType._EAdvanceComponentTypeClothes;
                    break;
                }
                case ELookUpType._ELookUpTypeWings:
                {
                    param1 = EAdvanceComponentType._EAdvanceComponentTypeWing;
                    break;
                }
                case ELookUpType._ELookUpTypeWeapon:
                {
                    param1 = EAdvanceComponentType._EAdvanceComponentTypeWeapon;
                    break;
                }
                case ELookUpType._ELookUpTypeFightSoul:
                {
                    param1 = EAdvanceComponentType._EAdvanceComponentTypeFightSoul;
                    break;
                }
                case ELookUpType._ELookUpTypeFightMethod:
                {
                    param1 = EAdvanceComponentType._EAdvanceComponentTypeFightMethod;
                    break;
                }
                case ELookUpType._ELookUpTypeDragonSoul:
                {
                    param1 = EAdvanceComponentType._EAdvanceComponentTypeDragonSoul;
                    break;
                }
                case ELookUpType._ELookUpTypeHolyBook:
                {
                    param1 = EAdvanceComponentType._EAdvanceComponentTypeHolyBook;
                    break;
                }
                case ELookUpType._ELookUpTypeWarShield:
                {
                    param1 = EAdvanceComponentType._EAdvanceComponentTypeWarShield;
                    break;
                }
                case ELookUpType._ELookUpTypeMonsterSoul:
                {
                    param1 = EAdvanceComponentType._EAdvanceComponentTypeMonsterSoul;
                    break;
                }
                default:
                {
                    break;
                }
            }
            return param1;
        }// end function

        public static function getVipRecordTypeByLookType(param1:int) : Object
        {
            var _loc_2:* = new Object();
            switch(param1)
            {
                case ELookUpType._ELookUpTypeMount:
                {
                    _loc_2.name = Language.getString(35344);
                    _loc_2.type = EVipRecordType._EVipRecordTypeMountEffect;
                    break;
                }
                case ELookUpType._ELookUpTypePet:
                {
                    _loc_2.name = Language.getString(35345);
                    _loc_2.type = EVipRecordType._EVipRecordTypePetEffect;
                    break;
                }
                case ELookUpType._ELookUpTypeFashion:
                {
                    _loc_2.name = Language.getString(35346);
                    _loc_2.type = EVipRecordType._EVipRecordTypeClothesEffect;
                    break;
                }
                case ELookUpType._ELookUpTypeWings:
                {
                    _loc_2.name = Language.getString(35347);
                    _loc_2.type = EVipRecordType._EVipRecordTypeWingEffect;
                    break;
                }
                case ELookUpType._ELookUpTypeWeapon:
                {
                    _loc_2.name = Language.getString(35348);
                    _loc_2.type = EVipRecordType._EVipRecordTypeWeaponEffect;
                    break;
                }
                case ELookUpType._ELookUpTypeFightSoul:
                {
                    _loc_2.name = Language.getString(35349);
                    _loc_2.type = -1;
                    break;
                }
                case ELookUpType._ELookUpTypeFightMethod:
                {
                    _loc_2.name = Language.getString(35350);
                    _loc_2.type = -1;
                    break;
                }
                case ELookUpType._ELookUpTypeDragonSoul:
                {
                    _loc_2.name = Language.getString(35351);
                    _loc_2.type = -1;
                    break;
                }
                case ELookUpType._ELookUpTypeHolyBook:
                {
                    _loc_2.name = Language.getString(35352);
                    _loc_2.type = -1;
                    break;
                }
                case ELookUpType._ELookUpTypeWarShield:
                {
                    _loc_2.name = Language.getString(35353);
                    _loc_2.type = -1;
                    break;
                }
                case ELookUpType._ELookUpTypeMonsterSoul:
                {
                    _loc_2.name = Language.getString(35354);
                    _loc_2.type = -1;
                    break;
                }
                default:
                {
                    break;
                }
            }
            return _loc_2;
        }// end function

        public static function getEquipTxt(param1:int, param2:int) : String
        {
            var _loc_3:String = null;
            switch(param1)
            {
                case ELookUpType._ELookUpTypeMount:
                {
                    _loc_3 = MountEquipPart.getItemNameByIndex(param2);
                    break;
                }
                case ELookUpType._ELookUpTypePet:
                {
                    _loc_3 = PetInfoEpuipPanel.getItemNameByIndex(param2);
                    break;
                }
                default:
                {
                    _loc_3 = FashionUtil.getEquipNameByLookType(param1, param2);
                    break;
                    break;
                }
            }
            return _loc_3;
        }// end function

        public static function getEquipItemCode(param1:int, param2:int) : int
        {
            var _loc_3:int = 0;
            switch(param1)
            {
                case ELookUpType._ELookUpTypeMount:
                {
                    _loc_3 = MountEquipPart.getItemCodeByIndex(param2);
                    break;
                }
                case ELookUpType._ELookUpTypePet:
                {
                    _loc_3 = PetInfoEpuipPanel.getItemCodeByIndex(param2);
                    break;
                }
                case ELookUpType._ELookUpTypeFashion:
                {
                    _loc_3 = ItemConfig.instance.getFashionEquipByLevel(EProp._EPropFashionClothesEquip, param2, 3, 3).code;
                    break;
                }
                case ELookUpType._ELookUpTypeWings:
                {
                    _loc_3 = ItemConfig.instance.getFashionEquipByLevel(EProp._EPropFashionWingEquip, param2, 3, 3).code;
                    break;
                }
                case ELookUpType._ELookUpTypeWeapon:
                {
                    _loc_3 = ItemConfig.instance.getFashionEquipByLevel(EProp._EPropFashionWeaponEquip, param2, 3, 3).code;
                    break;
                }
                case ELookUpType._ELookUpTypeFightSoul:
                {
                    _loc_3 = ItemConfig.instance.getFashionEquipByLevel(EProp._EPropFashionFightSoulEquip, param2, 3, 3).code;
                    break;
                }
                case ELookUpType._ELookUpTypeFightMethod:
                {
                    _loc_3 = ItemConfig.instance.getFashionEquipByLevel(EProp._EPropFashionFightMethodEquip, param2, 3, 3).code;
                    break;
                }
                case ELookUpType._ELookUpTypeDragonSoul:
                {
                    _loc_3 = ItemConfig.instance.getFashionEquipByLevel(EProp._EPropFashionDragonSoulEquip, param2, 3, 3).code;
                    break;
                }
                case ELookUpType._ELookUpTypeHolyBook:
                {
                    _loc_3 = ItemConfig.instance.getFashionEquipByLevel(EProp._EPropFashionHolyBookEquip, param2, 3, 3).code;
                    break;
                }
                case ELookUpType._ELookUpTypeWarShield:
                {
                    _loc_3 = ItemConfig.instance.getFashionEquipByLevel(EProp._EPropFashionWarShieldEquip, param2, 3, 3).code;
                    break;
                }
                case ELookUpType._ELookUpTypeMonsterSoul:
                {
                    _loc_3 = ItemConfig.instance.getFashionEquipByLevel(EProp._EPropFashionMonsterSoulEquip, param2, 3, 3).code;
                    break;
                }
                default:
                {
                    break;
                }
            }
            return _loc_3;
        }// end function

        public static function getGrouthItemCode(param1:int) : int
        {
            var _loc_2:int = 0;
            switch(param1)
            {
                case ELookUpType._ELookUpTypeMount:
                {
                    _loc_2 = MountEquipPart.grouthItemCode;
                    break;
                }
                case ELookUpType._ELookUpTypePet:
                {
                    _loc_2 = PetInfoEpuipPanel.grouthItemCode;
                    break;
                }
                case ELookUpType._ELookUpTypeFashion:
                {
                    _loc_2 = FashionConst.PropCode_Cloth_Growth;
                    break;
                }
                case ELookUpType._ELookUpTypeWings:
                {
                    _loc_2 = FashionConst.PropCode_Wing_Growth;
                    break;
                }
                case ELookUpType._ELookUpTypeWeapon:
                {
                    _loc_2 = FashionConst.PropCode_Weapon_Growth;
                    break;
                }
                case ELookUpType._ELookUpTypeFightSoul:
                {
                    _loc_2 = FashionConst.PropCode_FightSoul_Growth;
                    break;
                }
                case ELookUpType._ELookUpTypeFightMethod:
                {
                    _loc_2 = FashionConst.PropCode_FightMethod_Growth;
                    break;
                }
                case ELookUpType._ELookUpTypeDragonSoul:
                {
                    _loc_2 = FashionConst.PropCode_DragonSoul_Growth;
                    break;
                }
                case ELookUpType._ELookUpTypeHolyBook:
                {
                    _loc_2 = FashionConst.PropCode_HolyBook_Growth;
                    break;
                }
                case ELookUpType._ELookUpTypeWarShield:
                {
                    _loc_2 = FashionConst.PropCode_WardShield_Growth;
                    break;
                }
                case ELookUpType._ELookUpTypeMonsterSoul:
                {
                    _loc_2 = FashionConst.PropCode_MonsterSoul_Growth;
                    break;
                }
                default:
                {
                    break;
                }
            }
            return _loc_2;
        }// end function

        public static function getTalentItemCode(param1:int) : int
        {
            var _loc_2:int = 0;
            switch(param1)
            {
                case ELookUpType._ELookUpTypeMount:
                {
                    _loc_2 = MountEquipPart.tatlentItemCode;
                    break;
                }
                case ELookUpType._ELookUpTypePet:
                {
                    _loc_2 = PetInfoEpuipPanel.tatlentItemCode;
                    break;
                }
                case ELookUpType._ELookUpTypeFashion:
                {
                    _loc_2 = FashionConst.PropCode_Cloth_Talent;
                    break;
                }
                case ELookUpType._ELookUpTypeWings:
                {
                    _loc_2 = FashionConst.PropCode_Wing_Talent;
                    break;
                }
                case ELookUpType._ELookUpTypeWeapon:
                {
                    _loc_2 = FashionConst.PropCode_Weapon_Talent;
                    break;
                }
                case ELookUpType._ELookUpTypeFightSoul:
                {
                    _loc_2 = FashionConst.PropCode_FightSoul_Talent;
                    break;
                }
                case ELookUpType._ELookUpTypeFightMethod:
                {
                    _loc_2 = FashionConst.PropCode_FightMethod_Talent;
                    break;
                }
                case ELookUpType._ELookUpTypeDragonSoul:
                {
                    _loc_2 = FashionConst.PropCode_DragonSoul_Talent;
                    break;
                }
                case ELookUpType._ELookUpTypeHolyBook:
                {
                    _loc_2 = FashionConst.PropCode_HolyBook_Talent;
                    break;
                }
                case ELookUpType._ELookUpTypeWarShield:
                {
                    _loc_2 = FashionConst.PropCode_WardShield_Talent;
                    break;
                }
                case ELookUpType._ELookUpTypeMonsterSoul:
                {
                    _loc_2 = FashionConst.PropCode_MonsterSoul_Talent;
                    break;
                }
                default:
                {
                    break;
                }
            }
            return _loc_2;
        }// end function

    }
}
